home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / C Internet Config / IC Application Source ƒ / Headers ƒ / IC Helper What.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-01  |  2.0 KB  |  75 lines  |  [TEXT/SPM ]

  1. /*
  2.     IC Helper What.h
  3.     
  4. */
  5.  
  6. #pragma once
  7.  
  8. #ifndef __H_IC_Helper_What__
  9. #define __H_IC_Helper_What__
  10.  
  11. #include "IC Types.h"
  12.  
  13. enum {
  14.     ditHChange=1,
  15.     ditHMainUserItem,
  16.     ditHAdd,
  17.     ditHDelete,
  18.     ditHList
  19. };
  20.  
  21. enum {
  22.     ditHOK=1,
  23.     ditHCancel,
  24.     ditHAddUserItem,
  25.     ditHHelper,
  26.     ditHAppName,
  27.     ditHChooseApplication
  28. };
  29.  
  30. #define kCellHeight 36
  31.  
  32. struct InternalAppSpecStruct {
  33.     Str255 key;
  34.     Boolean locked;
  35.     ICAppSpec appspec;
  36. };
  37.  
  38. typedef struct InternalAppSpecStruct InternalAppSpec;
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43.  
  44. void GetNthElement(Handle entries,short index,InternalAppSpec* res);
  45. void SetNthElement(Handle entries,short index,InternalAppSpec* res);
  46. Boolean EntryLocked(Handle entries,short index);
  47. void DimHelperButtons(WindowType wt);
  48. pascal void HelperUserItemUpdate(DialogPtr dlg,short item);
  49. void HelperLDDraw(Handle entries,Boolean select,Rect* r,Cell the_cell,short offset,short datalen,ListHandle lh);
  50. pascal void HelperLDEF(short message,Boolean select,Rect* r,Cell the_cell,short offset,short datalen,ListHandle lh);
  51. OSErr WhatOpenHelper(WindowType wt,short item);
  52. Boolean ChooseApplication(ICAppSpec* spec);
  53. void FixButton(DialogPtr dlg);
  54. pascal Boolean DoAddFilter(DialogPtr dlg,EventRecord* er,short* item);
  55. OSErr DoEdit(Handle entries,ListHandle lh,InternalAppSpec* choosen_app);
  56. OSErr DoAdd(Handle entries,ListHandle lh);
  57. OSErr DoChange(short selection,Handle entries,ListHandle lh);
  58. OSErr DoDelete(short selection,Handle entries,ListHandle lh);
  59. OSErr WhatClickHelper(WindowType wt,short item,EventRecord* er);
  60. OSErr WhatFlushHelper(WindowType wt,short item);
  61. OSErr WhatCloseHelper(WindowType wt,short item);
  62. OSErr WhatActivateHelper(WindowType wt,short item,Boolean activate);
  63. pascal StringPtr GetHelpEntryName(ListHandle list,Cell c,StringPtr str);
  64. OSErr WhatKeyHelper(WindowType wt,short item,EventRecord* er);
  65. OSErr WhatCursorHelper(WindowType wt,short item,Point pt,short cursorid);
  66. void HelperSetSelection(StringPtr key);
  67.  
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71.  
  72. #endif /* __H_IC_Helper_What__ */
  73.  
  74.  
  75.